import Mock from 'mockjs'

const grades=[

]

export default [
  {
    url: '/vue-admin-template/grades/[A-Za-z0-9]',
    type: 'get',
    response: _ => {
      return {
        code: 20000,
        data: grades
      }
    }
  },

  {
    url: '/vue-admin-template/grade',
    type: 'post',
    response: _ => {
      return {
        code: 20000,
        data: {
          id: Mock.mock('@integer(300, 5000)')
        }
      }
    }
  },
  // update order
  {
    url: '/vue-admin-template/grade',
    type: 'put',
    response: {
      code: 20000,
      data: {
        status: 'success'
      }
    }
  },

  // delete order
  {
    url: '/vue-admin-template/grade/[A-Za-z0-9]',
    type: 'delete',
    response: {
      code: 20000,
      data: {
        status: 'success'
      }
    }
  }
]
